﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Specialized;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

using Common;

namespace com.globalwave.system
{
    public partial class DictPage : Common.BasePage
    {
        public void list()
        {
            DictService service = DictService.getService();
            DataSet ds  = service.query(new NameValueCollection() , -1, -1);

            renderListXML(ds);
        }

        private static Hashtable privilegeMap = null;

        override protected Hashtable getPrivilegeMap()
        {
            if (privilegeMap == null)
            {
                privilegeMap = new Hashtable();

                privilegeMap.Add("login", (short)-1);
                privilegeMap.Add("list", (short)-1);
                privilegeMap.Add("create", (short)-1);
                privilegeMap.Add("update", (short)-1);
                privilegeMap.Add("delete", (short)-1);
            }

            return privilegeMap;
        }
    }
}